/*
 * @FilePath: /flutter_cart/lib/routers/router_handler.dart
 * @Author: Yongchao Wang
 * @Date: 2020-12-05 14:43:53
 * @LastEditors: Yongchao Wang
 * @LastEditTime: 2020-12-05 14:47:24
 */
import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';
import '../pages/detail_page.dart';

Handler detailsHandler = Handler(
  handlerFunc: (BuildContext context, Map<String, dynamic> params) {
    String goodsId = params['id'].first;
    print(goodsId);
    return DetailsPages(
      goodsId: goodsId,
    );
  },
);
